<template>
  <div>
    <van-search
  v-model="value"
  shape="round"
  background="#eee"
  placeholder="请输入搜索关键词"
     @search="onSearch"
/>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import { showToast } from 'vant';
 const value = ref('');
 const onSearch = (val) => {
    console.log(val)
 }

</script>

<style scoped>
</style>
